package com.boscloud.service;

import com.alibaba.fastjson.JSON;
import com.boscloud.pojo.ProductionVerifyDate;
import com.boscloud.pojo.PostGoodMvtResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;
import java.util.Map;
@Service
@Slf4j
public class ProductionVerifyDateService {
    @Autowired
    private  postSapServices postSapServices;
    public List<ProductionVerifyDate> getProductionVerifyDate(Map<String, Object> params, Map<String, String> headers) throws IOException {
        String result = postSapServices.post(params,headers);
        List<ProductionVerifyDate> ProductionVerifyDates = JSON.parseObject(result, List.class);
        return ProductionVerifyDates;
    }

}
